package casa.depesos.app.com.utils;

import android.text.TextUtils;

import com.common.base.utils.SPHelper;

import casa.depesos.app.com.App;
import casa.depesos.app.com.BuildConfig;
import casa.depesos.app.com.http.data.WhiteData;

public class Constant {

    public final static boolean online = BuildConfig.online;
    private final static String HOST = BuildConfig.H5;
    public final static String AGREE = HOST + "loanAgree";
    public final static String PRIVACY = HOST + "privacyAgree";
    public final static String HELP = HOST + "faq";
    public final static String MSG = HOST + "notification";
    public static String PRODUCT_ID = "";
    private static String applyId = "";
    private static String mobeneToken = "";

    public static void setApplyId(String id) {
        applyId = id;
    }

    public static String getApplyId() {
        if (TextUtils.isEmpty(applyId)) {
            applyId = SPHelper.getInstance(App.getApp()).getString("apply", "");
        }
        return applyId;
    }

    public static String getToken() {
        return mobeneToken;
    }

    public static void setToken(String token) {
        mobeneToken = token;
    }

    public static boolean log = !online || BuildConfig.DEBUG;
    public final static boolean readSms = false;
    public static boolean white = false;
    public static WhiteData data;
    public static String adid = SPHelper.getInstance(App.getApp()).getString("adid", "");
    public static String gpsAdid = "";
    public static String adjustGpsAdid = "";
    public static String instanceId = "";
    public static boolean reset = false;
}
